<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML >
<html>
<head>
<base href="<%=basePath%>">

<title></title>
<link rel="stylesheet" href="css/result.css" type="text/css"></link>
<link rel="stylesheet" href="css/style.css" type="text/css"></link>
<style type="text/css">
.float_left {
	list-style-type: none;
	float: left;
	width: 90px;
}
</style>
</head>

<body>
	<c:if test="${empty loginMap}">
		<jsp:forward page="login.jsp"></jsp:forward>
	</c:if>
	<div style="height: 70px;"></div>
	<div class="main-div">
		<div>你好！欢迎访问微博管理系统</div>
		<div style=" width:100px; float: right;margin-top: -15px">
			<a href="users/exeit">注销</a>
		</div>
		<div class="clear_float"></div>
	</div>
	<div class="main-div">
		<div style="margin-top: 30px; float: left">
			<c:if test="${loginMap.supper eq 1}">
				<div style="line-height: 30px">
					<a href="users/findAllUsers?pageIndex=1&pageSize=3">微博管理</a>
				</div>
			</c:if>
			<c:if test="${loginMap.supper eq 0}">
				<div style="line-height: 30px">
					<a>微博管理</a>
				</div>
			</c:if>
			<c:if test="${loginMap.supper eq 1}">
				<div style="line-height: 30px">
					<a href="jsp/exditAccount.jsp">账户管理</a>
				</div>
			</c:if>
			<c:if test="${loginMap.supper eq 0}">
				<div style="line-height: 30px">
					<a>账户管理</a>
				</div>
			</c:if>
		</div>
		<div style="margin-top: 30px; float: left;margin-left: 50px">
			<h4>个人账户</h4>
			<form action="users/addAccount" method="post">
				<div style="margin-top: 30px; margin-left: 200px">
					<p>
						<label>用户名：</label><input type="text" value="" name="userName" />
					</p>
					<p style="margin-top: 20px;">
						<label>&nbsp;密码：</label><input type="text" value=""
							name="passWord" />
					</p>
					<p style="margin-top: 20px;">
						<label>&nbsp;昵称：</label><input type="text" value=""
							name="nickName" />
					</p>
					<p style="margin-top: 20px;">
						<label>&nbsp;年龄：</label><input type="text" value="" name="age" />
					</p>
					<p style="margin-top: 20px;">
						<label>&nbsp;性别：</label><select name="sex">
							<option>--请选择--</option>
							<option value="男">男</option>
							<option value="女">女</option>
						</select>
					<p style="margin-top: 20px;">
						<label>&nbsp;手机：</label><input type="text" value="" name="mobile" />
					</p>
					<p style="margin-top: 20px;">
						<label>&nbsp;地址：</label><input type="text" value="" name="address" />
					</p>
					<p style="margin-top: 20px;">
						<label>&nbsp;头像：</label><input type="text" value="" name="picpath" /><input
							type="button" value="浏览。。。" />
					</p>
				</div>
				<div style="margin-top: 30px;margin-left: 230px">
					<input type="submit" value="保存数据" /> <input type="button"
						value="返回" />
				</div>
			</form>
		</div>
	</div>
</body>
</html>
